//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Con_CustomerThankyou_EmailSendVerify extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/");
		selenium.start();
	}

	@Test
	public void testUntitled() throws Exception {
		selenium.open("/");
		selenium.click("css=img[alt=\"Enroll\"]");
		selenium.waitForPageToLoad("30000");
		selenium.type("id=txtZip", "01234");
		selenium.type("id=txtRadius", "10");
		selenium.click("name=submit");
		selenium.waitForPageToLoad("60000");
		selenium.click("link=Test Dealership");
		selenium.waitForPageToLoad("30000");
		selenium.open("/CustomerThankyou.php");
		selenium.type("id=txtFriend1Name", "Tester 1");
		selenium.type("id=txtFriend2Name", "Tester 2");
		selenium.type("id=txtFriend3Name", "Tester 3");
		selenium.type("id=txtFriend4Name", "Tester 4");
		selenium.type("id=txtFriend1Email", "thoward@xperience-det.com");
		selenium.type("id=txtFriend2Email", "thoward2@xperience-det.com");
		selenium.type("id=txtFriend3Email", "thoward3@xperience-det.com");
		selenium.type("id=txtFriend4Email", "thoward4@xperience-det.com");
		
		
		
		
			}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}